import { useRoutes } from "react-router-dom";
import routes from './route'
import RouterAuth from "@/components/RouterAuth"
import style from './layout.module.scss'

const App = () => {
  const router = useRoutes(routes)
  return (
    <div className={style.layoutBox}>
      <RouterAuth>{router}</RouterAuth>
    </div>
  )
}

export default App